<template>
  <div class="about">
    <h1>This is an about page</h1>
    <button @click="onClick1">修改全局的vuex状态</button>
    <button @click="onClick2">修改user的vuex状态</button>
  </div>
</template>

<script>
export default {
  name: "about",
  methods: {
    onClick1(){
      this.$store.commit("setMsg", "修改后的msg")
    },
    onClick2(){
      this.$store.commit("user/setisLogin", "no")
    }
  },
}
</script>
